package com.service.imp;
import com.mapper.DaYiMapper_x;
import com.mapper.ZhuTiMapper_x;
import com.pojo.DaYi_x;
import com.service.DaYiService_x;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class DaYiServiceXImp_x implements DaYiService_x {
    @Autowired
    private DaYiMapper_x daYiMapper;
    @Autowired
    private ZhuTiMapper_x zhuTiMapperX;
    @Override
    public List<DaYi_x> selectAll() {
        return daYiMapper.selectAll();
    }

    @Override
    public List<DaYi_x> selectAll1() {
        return daYiMapper.selectAll1();
    }

    @Override
    public List<DaYi_x> selectAll2() {
        return daYiMapper.selectAll2();
    }

    @Override
    public List<DaYi_x> selectAll3() {
        return daYiMapper.selectAll3();
    }

    @Override
    public List<DaYi_x> select1(Integer id, String user,String time1,String time2) {
        return daYiMapper.select1(id,user,time1,time2);
    }



    @Override
    public DaYi_x listAll(Integer id) {
        return daYiMapper.listAll(id);
    }

    @Override
    public Integer add(DaYi_x daYiX) {
        int n = daYiMapper.add(daYiX);
        return daYiX.getId();
    }

    @Override
    public Integer delete(Integer id) {
        return daYiMapper.delete(id);
    }


}
